module ReportsHelper
  def togShowZeroDaysFlag
    if (params[:show_zero_days].nil?)
      return 1
    else
      return nil
    end
  end

  def getZeroDaysLink
    zeroFlag = togShowZeroDaysFlag
    title = ""
    if (zeroFlag.nil?)
      title = "Hide Zero Days"
    else
      title = "Show Zero Days"
    end

    return link_to(title, :action => controller.action_name, :controller => :reports, :params => {:event_id => params[:event_id], :show_zero_days => zeroFlag})
  end

end
